package com.dong.decoratorMode.service;

import com.dong.decoratorMode.prepare.HandlerInterceptor;

/**
 * @author DongJiaQi
 * @create 2023/1/6 15:04
 * @Description: 抽象类装饰⻆⾊
 */
public class SsoDecorator implements HandlerInterceptor {

    private HandlerInterceptor handlerInterceptor;
    private SsoDecorator(){}

    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }
    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request,response,handler);
    }
}
